package com.banmao.algorithm.No101To200.No114;

public class Answer {

    public static void main(String[] args) {
        TreeNode node = new TreeNode(1, new TreeNode(2, new TreeNode(3), new TreeNode(4)), new TreeNode(5, null, new TreeNode(6)));

        Solution2 solution = new Solution2();
        solution.flatten(node);

        System.out.println(node);

    }

}
